<template>
<view>
<!--新闻详情页模板-->
<template name="newsDetail">
  <block v-for="(cellData, idy) in content" :key="idy">
    <block v-if="cellData.type == 'view'">
      <view class="p">
        <block v-for="(item, index) in cellData.child" :key="index">
          <block v-if="item.type == 'a'">
            <text class="a" :data-seccode="item.attr['data-seccode']" :data-secname="item.attr['data-secname']" @tap="stockClick">{{item.text}}</text>
          </block>
          <block v-else>
            <text>{{item.text}}</text>
          </block>
        </block>
      </view>
    </block>
    <block v-if="cellData.type == 'img'">
      {{wn_html_images}}
      <image class="img" :data-index="idy" mode="widthFix" :src="cellData.attr.src" @load="imageLoad" :style="'width: ' + cellData['attr']['width'] + ';max-width: 100%;height: ' + (cellData['attr']['height'] ? cellData['attr']['height'] : auto)"></image>
    </block>
  </block>
</template>
</view>
</template>


	<script> 
		
		export default {
			props: []
		}
    </script> 
    
									